package com.dly.file;

import java.io.FileInputStream;

import java.io.IOException;

public class InputStreamTest {
	
	public static void main(String[] args) throws IOException {
		
		FileInputStream fis=new FileInputStream("D:/home/a.txt");
		
//		System.out.println((char)fis.read());
		
		StringBuilder sb=new StringBuilder();
		int a=0;
		StringBuilder s=null;
		while((a=fis.read())!=-1){
			s=sb.append((char)a);
			
		}
		
		System.out.println(s);
		
	}
}
